import request from '@/tools/request'

export function getAuthCode() { //图像验证码
	return request.get("/captchaImage");
}
export function getCode(params) { //短信验证码
	return request.post("/sendSmsCode", params);
}
export function postLogin(params) { //短信验证码
	return request.post("/smsLogin", params);
}
export function zhicheng(params) { //职称列表
	return request.get(`/system/dict/data/type/${params}`);
}
export function userInfoPost(params) {
	return request.put(`/business/userInfo/replenishUserInfo`, params);
}
export function getDepList() {
	return request.get(`/business/userInfo/getUserDeptInfo`);
}
export function getInfo() {
	return request.get(`/getInfo`);
}
export function getBaseInfo() {
	return request.get(`/getBaseInfo`);
}
export function changePhoneNumber(params) { //更换手机号
	return request.post("/business/userInfo/sendSmsCodeUpdPhoneNumber", params);
}
export function protocolGet(params) { //用户协议
	return request.get("/system/notice/3");
}
export function secretGet(params) { //隐私协议
	return request.get("/system/notice/4");
}
export function updReplenishUserInfo(params) { //修改手机号
	return request.put("/business/userInfo/updReplenishUserInfo", params)
}
export function getTeamByUser(params) { //团队列表
	return request.get("/business/team/getTeamByUser",{params});
}
export function swTeam(params) { //切换团队
	return request.get(`/business/team/${params}`);
	//return request.get("/business/team/getTeamByUser",{params});
}
export function addTeamByUser(params) { //添加团队
	return request.post("/business/team", params);
}
export function getTeamUserListByTeamId(params) { //根据团队ID查询团队下所有成员
	return request.get(`/business/teamUser/getTeamUserListByTeamId`,{params});
}
export function getCorpAllUserInfo(params) { //查询企业所有成员
	return request.get(`/business/userInfo/getCorpAllUserInfo`, {
		'params': params
	});
}
export function teamUser(params) { //批量添加团队成员
	return request.post("/business/teamUser", params);
}
export function getUserInfoByUserId(userId) { //回显团队成员
	return request.get(`/business/userInfo/getUserInfoByUserId/${userId}`);
}
export function delTeamUser(params) { //删除团队成员
	return request.delete(`/business/teamUser/delTeamUser?teamId=${params.teamId}&userId=${params.userId}`);
}
export function aboutList(params) { //关于我们
	return request.get(`/system/dict/data/type/about_us`,{params});
}
export function cardList(params) { //关于我们
	return request.get(`/business/card/list`,{params});
}
export function postMark(params) { //添加标签
	return request.post(`/business/group`,params);
}
export function putMark(params) { //编辑标签组
	return request.put(`/business/group`,params);
}
export function getMark(tagGroupId) { //回显标签
	return request.get(`/business/group/${tagGroupId}`);
}
export function DelMark(tagGroupId) { //删除标签
	return request.delete(`/business/group/${tagGroupId}`);
}
export function getMarkLst(params) { //标签列表
	return request.get(`/business/group/list`,{params});
}
export function addHuocard(params) { //批量添加团队成员
	return request.post("/business/card", params);
}
export function putHuocard(params) { //批量添加团队成员
	return request.put("/business/card", params);
}
export function getEditData(params) { //批量添加团队成员
	return request.get(`/business/card/${params}`);
}
export function getDetailsTop(cardId) { //标签列表
	return request.get(`/business/card/getCardDetailsByCardId/${cardId}`);
}
export function getCardDetailsPage(params) { //患者列表
	//return request.get(`/business/customer/getCardDetailsPage/${params}`);
	return request.get(`/business/customer/getCardDetailsPage`,{params});
}
export function getPatientDetails(cuid,teamId = 0) { //根据ID获取患者信息详细信息,传0为没有团队ID
	return request.get(`/business/customer/getInfo/${cuid}`);
}
export function editCustomerTag(params) { //根据ID获取患者信息详细信息
	return request.put(`/business/customer/editCustomerTag`,params);
}
export function mySwiper() { //根据ID获取患者信息详细信息
	return request.get(`/business/userInfo/getIndexImage`);
}
export function getDocLocation(params) { //获得职业地点
//?doctorCode=4101052001000015&hospitalCode=41010501A2100010
	return request.get(`/business/GhDoctor/getPlaceInfos`,{params});
}
export function getDocLocationParams() {
	return request.get(`/business/jumpUrl/getGhInfos`);
}
export function paiban(params) { 
	return request.get(`/business/GhDoctor/getSchedules`,{params});
}
export function getCustomerInfo(params) { 
	return request.get(`/business/jumpUrl/getCustomerInfo`,{params});
}
export function getMySource(params) { 
	return request.post(`/common/xcxImageSourceUpload`,params);
}
export function PicList() { 
	return request.get(`/common/getcxImageSource`);
}
export function teamCount() { 
	return request.get(`/business/team/countUserTeamByUserId`);
}
export function getTeamNameNumber() { 
	return request.get(`/business/team/getTeamNameNumber`);
}
export function tagedList(params) { //单个患者标签回显
	return request.get(`/business/group/tagList`,{params});
}
export function tongbu() { //同步患者
	return request.get(`/business/customer/synchronousCustomerInfo`);
}
export function getJsapiTicket(params) { //获得JsapiTicket
	return request.get(`/h5/JSSDK/getJsapiTicket`,{params});
}
export function getAgentJsapiTicket(params) { //获得JsapiTicket
	return request.get(`/h5/JSSDK/getAgentJsapiTicket`,{params});
}
export function checkTeamUserOnTeam(teamId) { //获得JsapiTicket
	return request.get(`/business/team/checkTeamUserOnTeam/${teamId}`);
}
export function getUserCorpIdAndAgentId(params) { //获取jssdk相关配置 {userInfoCode:''}
	return request.get(`/h5/JSSDK/getUserCorpIdAndAgentId`,{params});
}
export function getCustomerListByTeamOrUserId(params) { //创建随访计划---目标患者---患者列表
	return request.get(`/business/plan/getCustomerListByTeamOrUserId`,{params});
}
export function addPlan(params) { //添加随访计划
	return request.post("/business/plan", params);
}
export function putPlan(params) { //修改随访计划
	return request.put("/business/plan", params);
}
export function indexJobList(status,params) { //首页--待办事项-待执行
	return request.get(`/business/job/waitDoneOrRecordEvent/${status}`,{params});
}
export function executeOrIgnoreFollowupPlanJob(params) { //首页--待办事项-执行,忽略动作
	return request.put(`/business/job/executeOrIgnoreFollowupPlanJob`,params);
}
export function getActionList() { //首页--我的待办
	return request.get(`/business/job`);
}
export function suifangList(params) { //工作台--随访列表
	return request.post(`/business/plan/followupPlanPage`,params);
}
export function suifangDict(plan_status) { //工作台--随访计划--字典
	return request.get(`/system/dict/data/type/${plan_status}`);
}
export function getFollowupPlanDetails(planId) { // 获取随访计划详情
	return request.get(`/business/plan/getFollowupPlanDetails/${planId}`);
}
export function getFollowupPlanJobByPlanId(planId) { // 根据随访计划Id获取随访任务列表信息
	return request.get(`/business/job/getFollowupPlanJobByPlanId/${planId}`);
}
export function deleteFollowupJob(params) { //编辑时，删除随访任务
	return request.put(`/business/job/deleteFollowupJob`,params);
}
export function cancelJob(id) { //终止随访任务
	return request.delete(`/business/plan/${id}`);
}
export function updFollowupPlanCustomerStatus(params) { //终止随访任务,执行人相关，患者详情页面
	return request.put(`/business/job/updFollowupPlanCustomerStatus`,params);
}
export function customergetCustomerAffiliateInfo(status,externalUserId,teamId = 0) { // 患者详情底部列表
	return request.get(`/business/customer/getCustomerAffiliateInfo?status=${status}&externalUserId=${externalUserId}&teamId=${teamId}`);
}
export function customergetSuifang(status,externalUserId,planJobId) { // 患者详情--随访综合评估记录
	return request.get(`/business/customer/getCustomerAffiliateInfo?status=${status}&externalUserId=${externalUserId}&planJobId=${planJobId}`);
}
export function getPingguDetails(id) { // 获得录入评估详情
	return request.get(`/business/job/${id}`);
}
export function updateFollowupPlanJobRecord(params) { // 录入评估提交
	return request.put(`/business/job/updateFollowupPlanJobRecord`,params);
}
export function HcemParams(phonenumber) { // hcem进入之前准备
	return request.get(`/externalSystem/hcem/getHCEMTokenByPhoneNumber?phoneNumber=${phonenumber}`);
}
export function wenjuanList(params) { // 问卷列表
	return request.get(`/externalSystem/QuesSystem/quesList`,{params});
}
export function getFollowupPlanJobRecordDetail(jobId) { // 通知消息-》查看详情
	return request.get(`/business/job/getFollowupPlanJobRecordDetail?jobId=${jobId}`);
}
export function selectFollowupPlanJobCount(planId) { //诊后随访-- 计划详情上面的统计数据
	return request.get(`/business/job/selectFollowupPlanJobCount/${planId}`);
}
export function wenjuanDetails(id) { //问卷预览详情
	return request.get(`externalSystem/quesSystem/selectQuesFillCustomer?quesTemplateId=${id}`);
}

export function pingguUrl(params) { //录入评估信息--评估链接 quesTemplateId、quesResultId
	return request.get(`/externalSystem/quesSystem/getQuesInfoByQuesTemplateId`,{params});
}
export function getIndexJobNum() { //首页任务数量
	return request.get(`/business/job/waitDoneOrRecordEventTotal`);
}
export function orderPage(params) { //订单分页
	return request.get(`/business/ghOrder/orderPage`,{params});
}
export function ghOrder(params) { //修改用户挂号订单状态
	return request.put(`/business/ghOrder`,params);
}
export function getGhPlatOrderDetail(params) { //获取挂号平台订单详情
	return request.get(`/business/ghOrder/getGhPlatOrderDetail`,{params});
}
export function getSysUserCommentPage(params) { //口碑列表
	return request.get(`/externalSystem/commentSystem/getSysUserCommentPage`,{params});
}
export function getCommentProblemDict(params) { //口碑详情 获取评价反馈问题字典
	return request.get(`/externalSystem/commentSystem/getCommentProblemDict`,{params});
}
export function insertCommentRecord(params) { //医生评价内容
	return request.post(`/externalSystem/commentSystem/insertCommentRecord`,params);
}



///


// export function authTwo(){
// 	return request.get(`/h5/JSSDK/getOauth2AuthUrl`);
// }




//应用jsapi_ticket


///business/customer/getCardDetailsPage

// export function userInfoPut(params){  //短信验证码
// 	return request.get(`/system/dict/data/type/${params}`);
// }


// export function userInfoPut(params){  //短信验证码
// 	return request.get(`/system/dict/data/type/${params}`);
// }
///business/userInfo/replenishUserInfo